﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.ParticipantFieldViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
        EditList</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript" src="../../Scripts/EditParticipant.js"></script>
<div class="pageHeadingContainer"><h2 class="pageHeading">Edit Participant List - <%=Model.poll.name %></h2></div>
<div id="contentContainer">
<p><%= Html.ActionLink("Polls > ", "Index", "Poll", null, new { @class = "breadcrumb" })%><%= Html.ActionLink(Model.poll.name, "Questions", "Poll", new { pollID = Model.poll.pollID, pollName = Model.poll.name }, new { @class = "breadcrumb" })%> >
   <%= Html.ActionLink("Participant List", "Participants", "Poll", new { pollId = Model.poll.pollID }, new { @class = "breadcrumb" })%> > Edit List</p>
    <div id="pageMenuContainer">
        <ul id="pageMenu">
            <li><%= Html.ActionLink("Details", "Questions", "Poll", new { pollID = Model.poll.pollID },null) %></li>
            <li><%= Html.ActionLink("Run", "SetSession","Poll", new { pollID = Model.poll.pollID },null) %></li>
            <li><%= Html.ActionLink("Test", "Test","Poll", new { pollID = Model.poll.pollID },null) %></li>
            <li><%= Html.ActionLink("Reports", "Reports","Poll", new { pollID = Model.poll.pollID },null) %></li>
            <li><%= Html.ActionLink("Manage Hierarchy", "EntityHierarchy", new { pollID = Model.poll.pollID }) %></li>
        </ul>
    </div>
<span><label for="addfield">Add Field: </label><input name="addfield" type="text" id="addfield"/>
<button id="adding" onclick="addField()">Add</button></span>
<div style="overflow:auto"><%Html.RenderPartial("Group", Model); %>
</div>
    <table>
        <tbody>
            <tr><td><button id="submitEditList" onclick="update(event)">Save</button></td><td></td></tr>
        </tbody>
    </table> 
    <input id="pollid" value="<%=Model.poll.pollID %>" type="hidden" />
    <input id="pollname" value="<%=Model.poll.name %>" type="hidden" />
</div>

</asp:Content>